package day_2022_12_to_3.day;

/**
 * @author haomin
 * @date 2022/12/27 11:21
 **/
public class Day12_27_Num2027 {
    class Solution {
        public int minimumMoves(String s) {
            int ans = 0;
            for(int i = 0; i < s.length(); ++i) {
                char c = s.charAt(i);
                if(c == 'X') {
                    ans++;
                    i+=2;
                }
            }
            return ans;
        }
    }
}